package simple.controller;

import annotation.Controller;
import annotation.RequestMapping;
import annotation.Security;

/**
 * @Description 权限验证
 * @Date 2020/12/11 13:38
 * @Author zheng9feng
 */
@Controller
@RequestMapping("/security")
@Security({"user1","user2","user3","user4"})
public class SecurityController  {
	
	@RequestMapping("/checkAuthority1")
	@Security({"user1","user2"})
	public String checkAuthority1(String username) {
		
		return "welcome,"+username;
	}
	
	@RequestMapping("/checkAuthority2")
	@Security({"user3","user4"})
	public String checkAuthority2(String username) {
		
		return "welcome,"+username;
	}
}
